using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using MonoTouch.Foundation;
using MonoTouch.UIKit;
using CoachingOrganizer.Logic.Models.Common;

namespace CoachingOrganizer.iOS.Controllers
{
    public partial class CommonGoalDetailsViewController : UIViewController
    {
        private readonly GoalModel _model;

        public CommonGoalDetailsViewController(IntPtr handle)
            : base(handle)
        {
            _model = ((GoalDetailsViewController)ParentViewController).Model;
        }

        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            GoalDescriptionView.Text = _model.Description;
            //ExpectedResultVolumeView.Text = _model.ExpectedResultVolume;
        }

        partial void GoBack(NSObject sender)
        {
            ParentViewController.DismissViewController(true, null);
        }
    }
}